Skip to main content

vaccinationcenter

Table Name: vaccinationcenter

The vaccinationcenter table holds information about vaccination centers, including details about their registration, location, and associated metadata.


Columns

Column NameData TypeConstraintsDescription
mappedIdint(11)Primary KeyUnique identifier for the vaccination center, linked to a location ID.
centerTypevarchar(30)Type of the vaccination center (e.g., hospital, clinic).
createdDatedatetimeTimestamp of when the record was created.
dateRegistereddatetimeNOT NULLDate when the vaccination center was registered.
descriptionvarchar(255)Additional information about the center.
fullNamevarchar(255)Full name of the vaccination center.
lastEditedDatedatetimeTimestamp of the last edit made to the record.
namevarchar(255)UNIQUEUnique name of the vaccination center.
shortNamevarchar(30)Abbreviated name of the vaccination center.
createdByUserIdint(11)ID of the user who created the record.
lastEditedByUserIdint(11)ID of the user who last edited the record.
programIdint(11)ID of the associated program.
voidedtinyint(4)DEFAULT '0'Indicates if the record is voided (0 = active, 1 = voided).
voidedDatedatetimeTimestamp of when the record was voided, if applicable.
voidedReasonvarchar(45)Reason for voiding the record, if applicable.
organizationIdint(11)ID of the associated organization.
isBirthingCentertinyint(1)DEFAULT '0'Indicates if the center is a birthing center (0 = no, 1 = yes).

Indexes

  1. Primary Key:
    • mappedId: Unique identifier for the vaccination center.
  2. Additional Indexes:
    • name: Ensures the name of each vaccination center is unique.
    • FK41866ADAC79271AF: Index for the mappedId column.
    • vaccinationcenter_lastEditedByUserId_user_mappedId_FK: Index for the lastEditedByUserId column.
    • vaccinationcenter_createdByUserId_user_mappedId_FK: Index for the createdByUserId column.
    • program_programId_vaccinationcenter_programId_FK_idx: Index for the programId column.
    • organization_vaccinationcenter_idx: Index for the organizationId column.

Foreign Key Relations

  1. FK41866ADAC79271AF
    • Column: mappedId
    • References: location(locationId)
    • Description: Links the vaccination center to its location details.
  2. organization_vaccinationcenter
    • Column: organizationId
    • References: organization(organizationId)
    • Description: Associates the vaccination center with an organization.
  3. vaccinationcenter_createdByUserId_user_mappedId_FK
    • Column: createdByUserId
    • References: user(mappedId)
    • Description: Identifies the user who created the vaccination center record.
  4. vaccinationcenter_lastEditedByUserId_user_mappedId_FK
    • Column: lastEditedByUserId
    • References: user(mappedId)
    • Description: Identifies the user who last edited the vaccination center record.
  5. vaccinationcenter_ibfk_1
    • Column: programId
    • References: program(programId)
    • Description: Links the vaccination center to a specific program it is part of.

Usage Notes

  • Purpose:
    • To store and manage details of vaccination centers.
    • Useful for administrative tasks, reporting, and linking to other healthcare data.
  • Reference Usage:
    • The programId column connects vaccination centers to specific healthcare programs.
    • The organizationId column allows grouping centers under organizations.